From 026db0c9e421f4259aa46ae25ce7e77efab7deaa Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 21 Jun 2025 10:34:27 +0200 Subject: [PATCH] fix returning remote data in get_data for all devices Signed-off-by: Felix Fietkau --- ufpd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ufpd b/ufpd index 0b3e283..26f263c 100755 --- a/ufpd +++ b/ufpd @@ -329,10 +329,10 @@ global.ubus_object = { refresh_plugins(); + let cur_devices = network_devices(req.args.local); if (!mac) - return devices; + return cur_devices; - let cur_devices = network_devices(req.args.local); let dev = cur_devices[mac]; if (!dev) return libubus.STATUS_NOT_FOUND; -- 2.30.2